import request from '@/utils/request'

export function getCustomer(params) {
  return request({
    url: '/hermes/common/customer',
    method: 'get',
    params
  })
}

export function getBond(params) {
  return request({
    url: '/hermes/common/bond',
    method: 'get',
    params
  })
}

export function getDictItems(params) {
  return request({
    url: '/hermes/sys/dict/getDictItems',
    method: 'get',
    params
  })
}
// 根据字典code查询字典值
export function GetDictByCode(params) {
  return request({
    url: `/hermes/dict/queryDictByCode/${params.typeGroupcode}`,
    method: "get",
    headers: {
      version: "v1",
    },
  });
}
// 登出
export function logoutApi(params) {
  return request({
    headers: {
      version: "v1",
    },
    url: "/oauth/logout",
    method: "post",
    params,
  });
}